Make and view annual time-series data as 3-band composite¶

Basic Parameters: 
 PrintDate = 2023-05-29 
 gridCell = 4057 
 index_dir = /home/downspout-cel/paraguay_lc/stac/grids/004057/brdf_ts/ms/evi2 
 out_dir = /home/klwalker/data/tmp 
 spec_index= evi2
Single Plot Parameters: 
 plot_yr = 2021

Current options for composite bands are:¶

  • Avg (mean)
  • Max (maximum index value)
  • Min (minumum index value)
  • Amp (Max - Min)
  • Std (standard deviation)
  • CV (coefficient of variation: std/mean)
  • MaxDate (day of year on which maximum occurs)
  • MaxDateCos (cosine of max date, to reduce periodic effect)
  • MinDate (day of year on which minimum occurs)
  • MinDateCos (cosine of min date, to reduce periodic effect)

  • Jan (value from Jan 10th image)
  • Apr (value from Apr 10th image)
  • Jun (value from Jun 10th image)
  • Aug (value from Aug 10th image)
  • Nov (value from Nov 10th image)

note: if running many these, use bash script "MakeTScomposite.sh" to run on job node of cluster¶

Make ['Min','Max','Amp'] composite to highlight crops vs grassland/forest¶

comp already exists

Make ['Jan','Jun','Nov'] composite to see different crops¶

comp already exists

To save an html copy of this notebook with all outputs:¶

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[46], line 3
      1 ### Run to print output as html
----> 3 out_name = str(basic_config['country']+'2b_ViewTimeSeriesComposite'+'_cell'+str(basic_config['grid_cell'])+'_'+single_plot_params['plot_yr'])
      4 get_ipython().system("jupyter nbconvert --output-dir='./Outputs' --to html --no-input --output=$out_name 2b_ViewTimeSeriesComposite.ipynb")

TypeError: can only concatenate str (not "int") to str